package org.iknow.db;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.iknow.db.util.HibernateUtil;

@Entity
public class User implements Serializable {

	/**
		 * 
		 */
	private static final long serialVersionUID = -8978855916343197978L;

	public User() {
		HibernateUtil.addAnnotadedClassToConfiguration(this.getClass());
	}
	
	private long id;
	private String username;
	private String password;

	public void setId(long id) {
		this.id = id;
	}

	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUsername() {
		return username;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}

}
